#ifndef __DB_STRUCT_H__
#define __DB_STRUCT_H__

#include <string.h>

struct DBStructBase 
{
public:
	static void SetNum(int iNum){m_num = iNum; }
protected:
	DBStructBase(){}
	~DBStructBase(){}

protected:
	static int m_num;
};

struct UserData 
{
	static char* GetName(void){return "USER_DATA";}
	void Clear(void){memset((void*)this, 0, sizeof(UserData));}
	int id;
	int age;
	int heigth;
	//char name[16];
	char name[512];
};//total 64

struct PetData : public DBStructBase
{
	int id;
	char name[16];
	int masterid;
};

#endif //__DB_STRUCT_H__